package SmartMeeting.bridges;

import SmartMeeting.observers.Observer;
import SmartMeeting.observers.UIObserver;

public class WebPlatform implements PlatFormAPI{
    public WebPlatform() {
        meetingStatusManager.registerObserver(observer);
    }

    @Override
    public void videoOn() {
        System.out.println("Web平台视频已开启");
        observer.update("Web平台视频已开启");
    }

    @Override
    public void videoOff() {
        System.out.println("Web平台视频已关闭");
        observer.update("Web平台视频已关闭");
    }

    @Override
    public void audioOn() {
        System.out.println("Web平台音频已开启");
        observer.update("Web平台音频已开启");
    }

    @Override
    public void audioOff() {
        System.out.println("Web平台音频已关闭");
        observer.update("Web平台音频已关闭");
    }

    @Override
    public void shareScreenOn() {
        System.out.println("Web平台屏幕共享已开启");
        observer.update("Web平台屏幕共享已开启");
    }

    @Override
    public void shareScreenOff() {
        System.out.println("Web平台屏幕共享已关闭");
        observer.update("Web平台屏幕共享已关闭");
    }
}
